package com.project.isaacwiki.util;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result {
    private String msg;
    private int code;
    private Object data;

    public static Result Success(){
        return new Result("success",1,null);
    }

    public static Result Success(Object data){
        return new Result("success",1,data);
    }

    public static Result Error(String msg){
        return new Result(msg,0,null);
    }
}
